<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js" ></script>
		<script type="text/javascript" src="../js/angular-route.min.js" ></script>
	</head>
	<body ng-app="myapp">
			<div>头
				<ul>
					<li><a href="#/">111</a></li>
					<li><a href="#/a">aaa</a></li>
				</ul>
			</div>
			<div ng-view></div>
			<div>尾</div>
	</body>
	<script type="text/javascript">
		var mapp  = angular.module("myapp",[])
		mapp.config(["$routeProvider",function($routeProvider){
			$routeProvider.when("/",{
				 templateUrl:'1.html'
			}).when("/a",{
				 templateUrl:'2.html'
			}).otherwise({
				redirectTo:'/'
			});
		}]);
		
	</script>
</html>
